home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1988 July
/
1988-07.d64
/
window scroll
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
667b
|
20 lines
10 rem window scroll - copyright 1988 compute! publications, inc.
20 rem registers: 22,32,33
30 v=49152:s=49664:o=s+82:i=s+161:df=s+209
40 forx=828to852:readd:pokex,d:next
50 pokes+1,2:sysi
60 pokev+18*8,238:pokev+18*8+1,1
70 pokev+22*8,200:pokev+22*8+1,192
80 pokev+32*8,1:pokev+32*8+1,1
90 pokev+33*8,1:pokev+33*8+1,13
100 syss
110 print"[147][144] notice how only the bottom line of"
120 print" text scrolls. the upper portion"
130 print" of the screen remains stationary!"
140 print"this is a smooth scrolling text window.";
150 forx=6to0step-1:pokev+177,(peek(v+177)and248)+x:next
160 sys828:pokev+177,199:goto150
170 data173,18,208,208,251,173,192,7
180 data141,232,7,160,0,185,193,7,153
190 data192,7,200,192,40,208,245,96